package com.ruoyi.house_sale.service.impl;

import java.util.List;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.ExamMasterMapper;
import com.ruoyi.house_sale.domain.ExamMaster;
import com.ruoyi.house_sale.service.IExamMasterService;

import javax.annotation.Resource;

/**
 * 答卷题目Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-28
 */
@Service
public class ExamMasterServiceImpl implements IExamMasterService 
{
    @Resource
    private ExamMasterMapper examMasterMapper;

    /**
     * 查询答卷题目
     * 
     * @param examid 答卷题目主键
     * @return 答卷题目
     */
    @Override
    public ExamMaster selectExamMasterByExamid(Long examid)
    {
        return examMasterMapper.selectExamMasterByExamid(examid);
    }

    @Override
    public List<ExamMaster> selectExamMasterList(Long reseachid) {
        return examMasterMapper.selectExamMasterList(reseachid);
    }

    @Override
    public List<ExamMaster> selectExamMaster(ExamMaster examMaster) {
        return examMasterMapper.selectExamMaster(examMaster);
    }


    /**
     * 新增答卷题目
     * 
     * @param examMaster 答卷题目
     * @return 结果
     */
    @Override
    public int insertExamMaster(ExamMaster examMaster)
    {
        return examMasterMapper.insertExamMaster(examMaster);
    }

    @Override
    public int add(ExamMaster examMaster) {
        return examMasterMapper.insertExamMaster(examMaster);
    }

    /**
     * 修改答卷题目
     * 
     * @param examMaster 答卷题目
     * @return 结果
     */
    @Override
    public int updateExamMaster(ExamMaster examMaster)
    {
        return examMasterMapper.updateExamMaster(examMaster);
    }

    /**
     * 批量删除答卷题目
     * 
     * @param examids 需要删除的答卷题目主键
     * @return 结果
     */
    @Override
    public int deleteExamMasterByExamids(Long[] examids)
    {
        return examMasterMapper.deleteExamMasterByExamids(examids);
    }

    /**
     * 删除答卷题目信息
     * 
     * @param examid 答卷题目主键
     * @return 结果
     */
    @Override
    public int deleteExamMasterByExamid(Long examid)
    {
        return examMasterMapper.deleteExamMasterByExamid(examid);
    }

    @Override
    public int selCountId(Long reseachid) {
        return examMasterMapper.selCountId(reseachid);
    }

    @Override
    public Long selectReseachIdByExamIds(Long[] examids) {
        return examMasterMapper.selectReseachIdByExamIds(examids);
    }

    @Override
    public int updateResult(ExamMaster examMaster) {
        return examMasterMapper.updateResult(examMaster);
    }
}
